/**
 * @param { el: NotiflyElement, }
 * @description 通知消息
 */
import { Notification } from 'element-ui'
export const Notify = {
    // 创建通知
    create(type, message, time, dangerouslyUseHTMLString = false) {
        return Notification({
            type: type,
            title: "提示",
            message:
                message,
            dangerouslyUseHTMLString: dangerouslyUseHTMLString,
            duration: time,
        });
    },
    // 移除通知
    remove(el) {
        el.close();
    }
}